package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.BeforeDye;
import com.zhijian.medical.entity.vo.request.BeforeDyeInsideSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.BeforeDyeSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.BeforeDyeSearchVo;
import com.zhijian.medical.entity.vo.response.BeforeDyeListVo;
import com.zhijian.medical.entity.vo.response.BeforeDyeVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 脱水前的样本放置容器表 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-11-17 15:24:59
 */
public interface BeforeDyeService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    BeforeDye selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    BeforeDyeVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param beforeDye
     * @return
     */
    Long insert(BeforeDye beforeDye);

    /**
     * 更改
     *
     * @param beforeDye
     * @return
     */
    boolean update(BeforeDye beforeDye);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(BeforeDye record);

    /**
     * 总数
     *
     * @param beforeDyeSearchVo
     * @return
     */
    Integer count(BeforeDyeSearchVo beforeDyeSearchVo);

    /**
     * 列表
     *
     * @param beforeDyeSearchVo
     * @return
     */
    List<BeforeDyeListVo> selectList(BeforeDyeSearchVo beforeDyeSearchVo);

    /**
     * 分页查询
     *
     * @param beforeDyeSearchVo
     * @return
     */
    Page<BeforeDyeListVo> selectPage(BeforeDyeSearchVo beforeDyeSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<BeforeDye> entities);

    /**
     * 保存
     *
     * @param beforeDyeSaveOrUpdateVo
     * @return
     */
    boolean save(BeforeDyeSaveOrUpdateVo beforeDyeSaveOrUpdateVo);

    /**
     * 详情里面的保存
     *
     * @param beforeDyeInsideSaveOrUpdateVo
     * @return
     */
    boolean insideSave(BeforeDyeInsideSaveOrUpdateVo beforeDyeInsideSaveOrUpdateVo);
}